package com.df.springmvc.bi.home.controller;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.df.springmvc.supper.SupperController;



@Controller
@RequestMapping("/bi/home")
/**
 * 信息资源平台主页控制
 * @author David
 *
 */
public class BIPageController extends SupperController{
	String page_staff="bi/home/";
	@Autowired
	MessageSource messageSource;
	
	public BIPageController(){
		// TODO Auto-generated constructor stub
		//
	}
	//欢迎页
	@RequestMapping(value={"/"})
	public String excute(ModelMap model,HttpServletRequest request,HttpServletResponse response){
		org.apache.log4j.Logger.getLogger(getClass()).info("bipage");
		return page_staff;
	}
	//首页
	@RequestMapping(value={"/tohome" })
	public String toView(ModelMap model,HttpServletRequest request,HttpServletResponse response){
		try{
			
		}catch(Exception e){
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return page_staff + "home";
	}
	
}

